<?php /* Smarty version Smarty-3.1.12, created on 2013-02-18 17:10:42
         compiled from "/www/htdocs/w00fc40b/dota2league/templates/ladder/tablePrototype.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2650590545116de3e9ac3c1-18906141%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '175e112fba20ce5c37478241f4398723f912e0c0' => 
    array (
      0 => '/www/htdocs/w00fc40b/dota2league/templates/ladder/tablePrototype.tpl',
      1 => 1361203521,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2650590545116de3e9ac3c1-18906141',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_5116de3ea14487_42655003',
  'variables' => 
  array (
    'data' => 0,
    'TableID' => 0,
    'v' => 0,
    'steamID' => 0,
    'highlightUser' => 0,
    'elo' => 0,
    'winRate' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5116de3ea14487_42655003')) {function content_5116de3ea14487_42655003($_smarty_tpl) {?><?php if (count($_smarty_tpl->tpl_vars['data']->value)>0&&is_array($_smarty_tpl->tpl_vars['data']->value)){?>
<table id="<?php echo $_smarty_tpl->tpl_vars['TableID']->value;?>
"
	class="table table-striped LadderTable" cellpadding="0" cellspacing="0"
	border="0">
	<thead>
		<tr align="center">
			<th>#</th>
			<th></th>
			<th>Elo</th>
			<th>Player</th>
			<th>Wins</th>
			<th>Losses</th>
			<th>Win Rate</th>
		</tr>
	</thead>
	<tbody>
		<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['data']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['data_array']['iteration']=0;
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
 $_smarty_tpl->tpl_vars['smarty']->value['foreach']['data_array']['iteration']++;
?>
		<?php if ($_smarty_tpl->tpl_vars['v']->value['Rank']>0){?>
			<?php $_smarty_tpl->tpl_vars["elo"] = new Smarty_variable($_smarty_tpl->tpl_vars['v']->value['Rank'], null, 0);?>
			<?php $_smarty_tpl->tpl_vars["winRate"] = new Smarty_variable($_smarty_tpl->tpl_vars['v']->value['WinLoseRatio'], null, 0);?>
		<?php }else{ ?>
			<?php $_smarty_tpl->tpl_vars["elo"] = new Smarty_variable($_smarty_tpl->tpl_vars['v']->value['Elo'], null, 0);?>
			<?php $_smarty_tpl->tpl_vars["winRate"] = new Smarty_variable($_smarty_tpl->tpl_vars['v']->value['WinRate'], null, 0);?>
		<?php }?>
		<?php if ($_smarty_tpl->tpl_vars['steamID']->value==$_smarty_tpl->tpl_vars['v']->value['SteamID']){?>
			<?php $_smarty_tpl->tpl_vars["highlightUser"] = new Smarty_variable("info", null, 0);?>
		<?php }else{ ?>
			<?php $_smarty_tpl->tpl_vars["highlightUser"] = new Smarty_variable('', null, 0);?>
		<?php }?>
		<tr class="<?php echo $_smarty_tpl->tpl_vars['highlightUser']->value;?>
 <?php echo $_smarty_tpl->getSubTemplate ('prototypes/positionTrClass.tpl', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('position'=>$_smarty_tpl->getVariable('smarty')->value['foreach']['data_array']['iteration']), 0);?>
">
			<td><?php echo $_smarty_tpl->getVariable('smarty')->value['foreach']['data_array']['iteration'];?>
.</td>
			<td><?php echo $_smarty_tpl->getSubTemplate ("prototypes/medalIcon.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('elo'=>$_smarty_tpl->tpl_vars['elo']->value), 0);?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['elo']->value;?>
</td>
			<td><a href="profile.php?ID=<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
"><img src="<?php echo $_smarty_tpl->tpl_vars['v']->value['Avatar'];?>
" alt="<?php echo $_smarty_tpl->tpl_vars['v']->value['Name'];?>
's Avatar"> <?php echo $_smarty_tpl->tpl_vars['v']->value['Name'];?>
</a></td>
			<td><span class="text-success"><?php echo $_smarty_tpl->tpl_vars['v']->value['Wins'];?>
</span></td>
			<td><span class="text-error"><?php echo $_smarty_tpl->tpl_vars['v']->value['Loses'];?>
</span></td>
			<td><span class="text-warning"><?php echo $_smarty_tpl->tpl_vars['winRate']->value;?>
 %</span></td>
		</tr>

		<?php } ?>
	</tbody>
</table>
<br> <!-- Scrollbalken workaround -->
<?php }else{ ?> no Data, sorry <?php }?>
<?php }} ?>